ALMaSS  1.0
The Animal, Landscape and Man Simulation System
LE Class Reference

#include <elements.h>

Inheritance diagram for LE:
NonVegElement VegElement ActivePit AmenityGrass BareRock Building BuiltUpWithParkland Canal Carpark ChameleonLE Churchyard Coast DrainageDitch Fence FishFarm Freshwater Garden HeritageSite LargeRoad MetalledPath Parkland PitDisused Pylon RefuseSite River RiverBed RuralResidential Saltwater SandDune SmallRoad StoneWall Stream Suburban Track Urban UrbanNoVeg UrbanPark UrbanVeg WindTurbine BeetleBank Field ForestElement GreenElement HedgeBank Hedges PermPasture PermPastureLowYield PermPastureTussocky PermanentSetaside RoadsideVerge WaterBufferZone

Public Member Functions

 LE (void)
 
virtual ~LE (void)
 
LE_Signal GetSignal (void)
 
void SetSignal (LE_Signal a_signal)
 
int GetSubType (void)
 
void SetSubType (int a_subtype)
 
int GetALMaSSEleType (void)
 
void SetALMaSSEleType (int a_type)
 
virtual TTypesOfLandscapeElement GetElementType (void)
 
void SetElementType (int a_type)
 
void Trace (int a_value)
 
void ResetTrace (void)
 
long GetRunNum (void)
 
void BumpRunNum (void)
 
long GetMgtLoopDetectDate (void)
 
void SetMgtLoopDetectDate (long a_num)
 
long GetMgtLoopDetectCount (void)
 
void SetMgtLoopDetectCount (long a_num)
 
void Tick (void)
 
virtual TTypesOfVegetation GetVegType (void)
 
int GetVegStore (void)
 
void SetVegStore (int a_veg)
 
void ZeroVegAge ()
 
int GetVegAge ()
 
virtual void DoDevelopment (void)
 
virtual void RecalculateBugsNStuff (void)
 
virtual int GetVegPhase (void)
 
virtual double GetVegCover (void)
 
virtual double GetVegHeight (void)
 
virtual APoint GetCentroid ()
 
virtual int GetCentroidX ()
 
virtual int GetCentroidY ()
 
virtual void SetCentroid (int x, int y)
 
virtual double GetDigestability (void)
 
virtual int GetVegDensity (void)
 
virtual bool GetSkScrapes (void)
 
virtual bool IsMatureCereal ()
 
virtual bool IsCereal ()
 
virtual bool IsGrass ()
 
virtual bool GetVegPatchy (void)
 
virtual void SetVegPatchy (bool)
 
virtual double GetDayDegrees (void)
 
virtual double GetLAGreen (void)
 
virtual double GetLATotal (void)
 
virtual double GetGreenBiomass (void)
 
virtual double GetDeadBiomass (void)
 
virtual double GetVegBiomass (void)
 
virtual double GetWeedBiomass (void)
 
virtual double GetInsectPop (void)
 
virtual void SetInsectPop (double)
 
virtual void Insecticide (double)
 
virtual void InsectMortality (double)
 
virtual void ReduceWeedBiomass (double)
 
virtual void ToggleCattleGrazing (void)
 
virtual void TogglePigGrazing (void)
 
virtual void SetVegBiomass (int)
 
virtual void SetVegType (TTypesOfVegetation, TTypesOfVegetation)
 
virtual void SetVegHeight (double)
 
virtual void SetVegParameters (double, double, double, double)
 
virtual void SetCropData (double, double, double, TTypesOfVegetation, double, int)
 
virtual void SetCropDataAll (double, double, double, double, TTypesOfVegetation, double, double, int, double, bool, double)
 
virtual void StoreLAItotal ()
 
virtual void SetGrowthPhase (int)
 
virtual void ForceGrowthInitialize (void)
 
virtual void ForceGrowthTest (void)
 
virtual void ForceGrowthDevelopment (void)
 
virtual void ZeroVeg (void)
 
virtual void ReduceVeg (double)
 
virtual void ReduceVeg_Extended (double)
 
virtual void GrazeVeg_Extended (double)
 
virtual double GetTrafficLoad (void)
 
virtual TTypesOfVegetation GetPreviousCrop (int)
 
bool GetPoison (void)
 
void SetPoison (bool a_poison)
 
bool GetHigh (void)
 
int GetCattleGrazing (void)
 
bool GetPigGrazing (void)
 
bool HasTramlines (void)
 
bool IsRecentlyMown (void)
 
int IsRecentlySprayed (void)
 
int GetPoly (void)
 Returns the polyref number for this polygon. More...
 
int GetMapIndex (void)
 
void SetMapIndex (int a_map_index)
 
int GetOwnerFile (void)
 
int GetOwnerIndex (void)
 
int GetLastTreatment (int *a_index)
 
FarmGetOwner (void)
 
double GetArea (void)
 
double GetGooseGrazingForage (GooseSpecies a_goose)
 
double GetBirdSeed (void)
 
void SetBirdSeed (double a_forage)
 
double GetBirdMaize (void)
 
void SetBirdMaize (double a_forage)
 
int GetCountryDesignation (void)
 
void SetCountryDesignation (int a_designation)
 
long GetOldDays (void)
 
void SetOwner (Farm *a_owner, int a_owner_num, int a_owner_index)
 
void SetHigh (bool a_high)
 
void SetPoly (int a_poly)
 
void SetMapValid (bool a_valid)
 
bool GetMapValid (void)
 
void SetArea (double a_area)
 
virtual void GrazeVegetation (double, bool)
 
virtual void GrazeVegetationTotal (double)
 
int GetSoilType ()
 
int GetSoilTypeR ()
 
void SetSoilType (int a_st)
 
void SetLastSownVeg (TTypesOfVegetation a_tov)
 Records the last vegetation type to be sown. More...
 
TTypesOfVegetation GetLastSownVeg ()
 Returns the last vegetation type to be sown. More...
 
void SetLastTreatment (int a_treatment)
 
void SetSprayedToday (bool a_didit)
 
bool GetSprayedToday ()
 
void SetCopyTreatment (int a_treatment)
 
void SetOldDays (long a_days)
 
void SetRotIndex (int a_index)
 
int GetRotIndex (void)
 
void SetTramlinesDecay (int a_decaytime_days)
 
void SetHerbicideDelay (int a_decaytime_days)
 
void SetMownDecay (int a_decaytime_days)
 
void AddArea (double a_area_diff)
 
LEGetBorder (void)
 
int GetUnsprayedMarginPolyRef (void)
 
void SetBorder (LE *a_border)
 
void SetUnsprayedMarginPolyRef (int a_unsprayedmargin)
 
void SetPesticideCell (int a_cell)
 
int GetPesticideCell ()
 
void SetValidXY (int a_valid_x, int a_valid_y)
 
int GetValidX (void)
 
int GetValidY (void)
 
int GetMaxX (void)
 
int GetMaxY (void)
 
int GetMinX (void)
 
int GetMinY (void)
 
void SetMaxX (int x)
 
void SetMaxY (int y)
 
void SetMinX (int x)
 
void SetMinY (int y)
 
int GetMDates (int a, int b)
 
void SetMDates (int a, int b, int c)
 
int GetMConstants (int a)
 
void SetMConstants (int a, int c)
 
double GetVegDDegs ()
 Get the total of day degrees for the crop/veg on this element. More...
 
int GetOpenness (void)
 For goose model functionality, openness score for the polygon. More...
 
void SetGooseNos (int a_number, int a_day)
 
void SetGooseSpNos (int a_number, int a_day, GooseSpecies a_goose)
 
void SetGooseNosTimed (int a_number, int a_day)
 
void SetGooseSpNosTimed (int a_number, int a_day, GooseSpecies a_goose)
 
void SetGooseRoostDist (int a_dist, GooseSpecies a_goose)
 
int GetGooseNosToday ()
 For goose model functionality, returns the number of geese today. More...
 
int GetGooseNosTodayTimed ()
 For goose model functionality, returns the number of geese today at a predefined time. More...
 
int GetGooseNos ()
 For goose model functionality, returns the number of geese yesterday. More...
 
int GetQuarryNos ()
 For goose model functionality, returns the number of geese yesterday which can be hunted as legal quarry. More...
 
int GetGooseSpNosToday (GooseSpecies a_goose)
 For goose model functionality, returns the number of geese per species yesterday. More...
 
int GetGooseSpNosTodayTimed (GooseSpecies a_goose)
 For goose model functionality, returns the number of geese per species yesterday at a predefined time. More...
 
int GetGooseRoostDist (GooseSpecies a_goose)
 For goose model functionality, returns the distance to closest roost. More...
 
void SetOpenness (int a_openness)
 Records the openness statistic for this polygon. More...
 
virtual void ResetDigestability ()
 sets growth record to zero in descendent classes More...
 
void DoCopy (const LE *a_Le)
 a copy function to be used because a copy constuctor won't work More...
 
virtual void SetMaleNewtPresent (bool)
 Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic casts. More...
 
virtual bool IsMaleNewtPresent ()
 Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic casts. More...
 
void SetStubble (bool a_flag)
 Sets the in stubble flag. More...
 
bool GetStubble ()
 Return the in stubble flag. More...
 
bool GetOsmiaNest ()
 Test to see if a nest is found. More...
 
void ReleaseOsmiaNest ()
 Test to see if a nest is found. More...
 
void UpdateOsmiaNesting ()
 Recalculate the nest finding probability. More...
 
void IncOsmiaNesting ()
 Add an occupied nest. More...
 
void SetMaxOsmiaNests (double a_noNests)
 Add an occupied nest. More...
 
void SetPollenNectarData (int a_almasstype)
 sets the pollen and nectar information More...
 
virtual PollenNectarQuality GetPollen ()
 
virtual PollenNectarQuality GetNectar ()
 
virtual double GetTotalPollen ()
 
virtual double GetTotalNectar ()
 
void SetPollenNectarCurves (PollenNectarDevelopmentCurve *a_pollencurnve, PollenNectarDevelopmentCurve *a_nectarcurve)
 Set method for pollen and nectar curves. More...
 

Public Attributes

int m_tried_to_do
 
int m_squares_in_map
 
bool m_skylarkscrapes
 For management testing of skylark scrapes. More...
 
long m_user [EL_MAX_USERSPACE]
 ‍** More...
 
bool m_repeat_start
 

Protected Attributes

int m_ptrace [256]
 
int m_pdates [256]
 
int m_pindex
 
long m_running
 
LEm_border
 
int m_unsprayedmarginpolyref
 
int m_valid_x
 
int m_valid_y
 
int m_centroidx
 
int m_centroidy
 
int m_vege_danger_store
 
int m_PesticideGridCell
 
bool m_is_in_map
 
int m_subtype
 
int m_maxx
 
int m_minx
 
int m_maxy
 
int m_miny
 
long m_olddays
 
long m_management_loop_detect_date
 
long m_management_loop_detect_count
 
Farmm_owner
 
int m_countrydesignation
 
int m_owner_file
 
int m_owner_index
 
int m_rot_index
 
bool m_sprayedtoday
 flag to indicate an overspray situation More...
 
int m_poly
 The polyref number for this polygon. More...
 
int m_map_index
 
int m_almass_le_type
 This holds the ALMaSS element type reference number. More...
 
int m_farmfunc_tried_to_do
 
int m_tramlinesdecay
 
int m_mowndecay
 
int m_herbicidedelay
 
TTypesOfLandscapeElement m_type
 
double m_area
 The element area in m2. More...
 
int m_gooseNos [366]
 The number of geese each day. More...
 
int m_gooseSpNos [366][gs_foobar]
 The number of geese of each species each day. More...
 
int m_gooseNosTimed [366]
 The number of geese at a predefined time per day. More...
 
int m_gooseSpNosTimed [366][gs_foobar]
 The number of geese of each species at a predefined time per day. More...
 
bool m_instubble
 A flag describing the state of the field from a visual perspective - will be in stubble following a cereal crop until either soil cultivation or March 1st. More...
 
double m_birdseedforage
 The grain forage present in KJ/m2. More...
 
double m_birdmaizeforage
 The maize forage present in KJ/m2. More...
 
double m_goosegrazingforage [gs_foobar]
 The grazing forage present in KJ/min. The last value indicates cereal 1 or not -1. More...
 
TTypesOfVegetation m_lastsownvegtype
 Records the last vegegetation type that was sown on the element. More...
 
int m_openness
 The openness metric for a field (if any) More...
 
double m_dist_to_closest_roost [gs_foobar]
 An array holding the distance to the nearest goose roost. More...
 
int m_vegage
 
int m_soiltype
 
int m_days_since_insecticide_spray
 
bool m_high
 
bool m_poison
 
int m_cattle_grazing
 
int m_default_grazing_level
 
bool m_pig_grazing
 
double m_vegddegs
 
double m_yddegs
 
double m_ddegs
 
vector< int > m_lasttreat
 
unsigned int m_lastindex
 
int MDates [2][25]
 
int MConsts [10]
 
LE_Signal m_signal_mask
 
double m_OsmiaNestProb
 to record the chance of osmia nesting More...
 
int m_maxOsmiaNests
 to record the number of possible osmia nests More...
 
int m_currentOsmiaNests
 to record the number of actual osmia nests More...
 
PollenNectarQuality m_pollenquality
 
PollenNectarQuality m_nectarquality
 
double m_totalPollen
 
double m_totalNectar
 
double m_PollenM2
 
double m_NectarM2
 
PollenNectarDevelopmentCurvem_pollencurve
 pointer to the correct pollen curve set More...
 
PollenNectarDevelopmentCurvem_nectarcurve
 pointer to the correct nectar curve set More...
 

Static Protected Attributes

static double m_monthly_traffic []
 Used for birds that feed on grain on cereal fields 3% spill is expected. More...
 
static double m_largeroad_load []
 
static double m_smallroad_load []
 

Constructor & Destructor Documentation

◆ LE()

LE::LE ( void  )

The major job of this constructor is simply to provide default values for all members

279  {
280 
284  m_signal_mask = 0;
285  m_lasttreat.resize(1);
287  m_lastindex = 0;
288  m_running = 0;
289  m_poison = false;
290  m_owner_file = -1;
291  m_owner_index = -1;
292  m_high = false;
293  m_cattle_grazing = 0;
294  m_default_grazing_level = 0; // this means any grazed elements must set this in their constructor.
295  m_pig_grazing = false;
296  m_yddegs = 0.0;
297  m_vegddegs = -1.0;
298  m_olddays = 0;
300  m_tramlinesdecay = 0;
301  m_mowndecay = 0;
302  m_herbicidedelay = 0;
303  m_border = NULL;
305  m_valid_x = -1;
306  m_valid_y = -1;
307  m_is_in_map = false;
308  m_squares_in_map = 0;
311  m_repeat_start = false;
312  m_skylarkscrapes = false;
314  SetALMaSSEleType(-1);
315  m_ddegs = 0.0;
316  m_maxx = -1; // a very small number
317  m_maxy = -1;
318  m_minx = 9999999; // a very big number
319  m_miny = 9999999;
320  m_countrydesignation = -1; // default not set
321  m_soiltype = -1;
322  m_area = 0;
323  m_centroidx = -1;
324  m_centroidy = -1;
325  m_vege_danger_store = -1;
326  m_PesticideGridCell = -1;
327  m_subtype = -1;
328  m_owner = NULL;
329  m_rot_index = -1;
330  m_poly = -1;
331  m_map_index = -1;
332  m_almass_le_type = -1;
334  SetStubble(false);
335  m_birdseedforage = -1;
336  m_birdmaizeforage = -1;
337  m_openness = -1;
338  m_vegage = -1;
339  m_OsmiaNestProb = 0;
340  m_maxOsmiaNests = 0;
342  for (int i = 0; i<10; i++) SetMConstants(i, 1);
343  for (int i = 0; i < 366; i++)
344  {
345  m_gooseNos[i] = 0;
346  m_gooseNosTimed[i] = 0;
347  for (int l = 0; l < gs_foobar; l++)
348  {
349  m_gooseSpNos[i][l] = 0;
350  m_gooseSpNosTimed[i][l] = 0;
351  }
352  }
353  for (int l = 0; l < gs_foobar; l++)
354  {
355  m_goosegrazingforage[l] = 0;
356  }
357  for (int i = 0; i < 25; i++)
358  {
359  MDates[0][i] = -1;
360  MDates[1][i] = -1;
361  }
363 #ifdef FMDEBUG
364  m_pindex = 0;
365  for ( int i = 0; i < 256; i++ ) {
366  m_pdates[ i ] = 0;
367  m_ptrace[ i ] = 0;
368  }
369 #endif
370 }
long m_olddays
Definition: elements.h:466
int m_PesticideGridCell
Definition: elements.h:457
int m_centroidy
Definition: elements.h:455
double m_area
The element area in m2.
Definition: elements.h:489
int m_gooseNosTimed[366]
The number of geese at a predefined time per day.
Definition: elements.h:495
LE_Signal m_signal_mask
Definition: elements.h:532
bool m_poison
Definition: elements.h:516
int m_openness
The openness metric for a field (if any)
Definition: elements.h:509
int m_maxOsmiaNests
to record the number of possible osmia nests
Definition: elements.h:536
int m_vegage
Definition: elements.h:512
int m_countrydesignation
Definition: elements.h:470
int m_mowndecay
Definition: elements.h:485
unsigned int m_lastindex
Definition: elements.h:525
int m_maxx
Definition: elements.h:462
int m_valid_x
Definition: elements.h:452
bool m_repeat_start
Definition: elements.h:106
double m_birdseedforage
The grain forage present in KJ/m2.
Definition: elements.h:501
double m_ddegs
Definition: elements.h:522
int m_currentOsmiaNests
to record the number of actual osmia nests
Definition: elements.h:538
void SetStubble(bool a_flag)
Sets the in stubble flag.
Definition: elements.h:390
int m_default_grazing_level
Definition: elements.h:518
int m_pdates[256]
Definition: elements.h:442
int m_soiltype
Definition: elements.h:513
int m_gooseNos[366]
The number of geese each day.
Definition: elements.h:491
int m_centroidx
Definition: elements.h:454
bool m_is_in_map
Definition: elements.h:459
int m_map_index
Definition: elements.h:480
long m_running
Definition: elements.h:446
int m_minx
Definition: elements.h:463
int m_owner_file
Definition: elements.h:471
double m_OsmiaNestProb
to record the chance of osmia nesting
Definition: elements.h:534
void SetMConstants(int a, int c)
Definition: elements.h:344
int m_subtype
Definition: elements.h:461
Farm * m_owner
Definition: elements.h:469
int m_farmfunc_tried_to_do
Definition: elements.h:483
vector< int > m_lasttreat
Definition: elements.h:524
int m_miny
Definition: elements.h:465
int m_owner_index
Definition: elements.h:472
double m_goosegrazingforage[gs_foobar]
The grazing forage present in KJ/min. The last value indicates cereal 1 or not -1.
Definition: elements.h:505
int m_herbicidedelay
Definition: elements.h:486
double m_yddegs
Definition: elements.h:521
int m_cattle_grazing
Definition: elements.h:517
int MDates[2][25]
Definition: elements.h:530
int m_gooseSpNos[366][gs_foobar]
The number of geese of each species each day.
Definition: elements.h:493
int m_poly
The polyref number for this polygon.
Definition: elements.h:477
int m_rot_index
Definition: elements.h:473
LE * m_border
Definition: elements.h:447
int m_gooseSpNosTimed[366][gs_foobar]
The number of geese of each species at a predefined time per day.
Definition: elements.h:497
bool m_pig_grazing
Definition: elements.h:519
int m_valid_y
Definition: elements.h:453
bool m_skylarkscrapes
For management testing of skylark scrapes.
Definition: elements.h:88
int m_days_since_insecticide_spray
Definition: elements.h:514
int m_unsprayedmarginpolyref
Definition: elements.h:448
bool m_high
Definition: elements.h:515
void SetLastSownVeg(TTypesOfVegetation a_tov)
Records the last vegetation type to be sown.
Definition: elements.h:293
int m_maxy
Definition: elements.h:464
long m_management_loop_detect_date
Definition: elements.h:467
void SetALMaSSEleType(int a_type)
Definition: elements.h:112
int m_ptrace[256]
Definition: elements.h:441
int m_tramlinesdecay
Definition: elements.h:484
TTypesOfLandscapeElement m_type
Definition: elements.h:487
int m_squares_in_map
Definition: elements.h:86
int m_pindex
Definition: elements.h:443
double m_vegddegs
Definition: elements.h:520
long m_management_loop_detect_count
Definition: elements.h:468
int m_almass_le_type
This holds the ALMaSS element type reference number.
Definition: elements.h:482
int m_vege_danger_store
Definition: elements.h:456
double m_birdmaizeforage
The maize forage present in KJ/m2.
Definition: elements.h:503
@ tole_Foobar
Definition: tole_declaration.h:111
@ tov_Undefined
Definition: tov_declaration.h:114
@ sleep_all_day
Definition: treatment.h:33

References sleep_all_day, tole_Foobar, and tov_Undefined.

◆ ~LE()

LE::~LE ( void  )
virtual
452  {
453 }

Member Function Documentation

◆ AddArea()

void LE::AddArea ( double  a_area_diff)
inline
316 { m_area += a_area_diff; }

References m_area.

Referenced by Landscape::BeetleBankAdd(), Landscape::BorderScan(), and Landscape::UnsprayedMarginScan().

◆ BumpRunNum()

void LE::BumpRunNum ( void  )
inline
118 { m_running++; }

References m_running.

Referenced by Farm::HandleEvents(), and OptimisingFarm::HandleEvents().

◆ DoCopy()

void LE::DoCopy ( const LE a_Le)

a copy function to be used because a copy constuctor won't work

The major job of this method is simply to copy values for all members from one LE to another

372  {
373 
377  m_signal_mask = a_LE->m_signal_mask;
378  m_lasttreat = a_LE->m_lasttreat;
379  m_lastindex = a_LE->m_lastindex;
380  m_running = a_LE->m_running;
381  m_poison = a_LE->m_poison;
382  m_owner_file = a_LE->m_owner_file;
383  m_owner_index = a_LE->m_owner_index;
384  m_high = a_LE->m_high;
385  m_cattle_grazing = a_LE->m_cattle_grazing;
386  m_default_grazing_level = a_LE->m_default_grazing_level; // this means any grazed elements must set this in their constructor.
387  m_pig_grazing = a_LE->m_pig_grazing;
388  m_yddegs = a_LE->m_yddegs;
389  m_olddays = a_LE->m_olddays;
390  m_vegddegs = a_LE->m_vegddegs;
391  m_days_since_insecticide_spray = a_LE->m_days_since_insecticide_spray;
392  m_tramlinesdecay = a_LE->m_tramlinesdecay;
393  m_mowndecay = a_LE->m_mowndecay;
394  m_herbicidedelay = a_LE->m_herbicidedelay;
395  m_border = a_LE->m_border;
396  m_unsprayedmarginpolyref = a_LE->m_unsprayedmarginpolyref;
397  m_valid_x = a_LE->m_valid_x;
398  m_valid_y = a_LE->m_valid_y;
399  m_is_in_map = a_LE->m_is_in_map;
400  m_squares_in_map = a_LE->m_squares_in_map;
401  m_management_loop_detect_date = a_LE->m_management_loop_detect_date;
402  m_management_loop_detect_count = a_LE->m_management_loop_detect_count;
403  m_repeat_start = a_LE->m_repeat_start;
404  m_skylarkscrapes = a_LE->m_skylarkscrapes;
405  m_type = a_LE->m_type;
406  m_birdseedforage = a_LE->m_birdseedforage;
407  m_birdmaizeforage = a_LE->m_birdmaizeforage;
408  m_ddegs = a_LE->m_ddegs;
409  m_maxx = a_LE->m_maxx;
410  m_maxy = a_LE->m_maxy;
411  m_minx = a_LE->m_minx;
412  m_miny = a_LE->m_miny;
413  m_countrydesignation = a_LE->m_countrydesignation;
414  m_soiltype = a_LE->m_soiltype;
415  m_area = a_LE->m_area;
416  m_centroidx = a_LE->m_centroidx;
417  m_centroidy = a_LE->m_centroidy;
418  m_vege_danger_store = a_LE->m_vege_danger_store;
419  m_PesticideGridCell = a_LE->m_PesticideGridCell;
420  m_subtype = a_LE->m_subtype;
421  m_owner = a_LE->m_owner;
422  m_rot_index = a_LE->m_rot_index;
423  m_poly = a_LE->m_poly;
424  m_map_index = a_LE->m_map_index;
425  m_almass_le_type = a_LE->m_almass_le_type;
426  m_farmfunc_tried_to_do = a_LE->m_farmfunc_tried_to_do;
427  m_openness = a_LE->m_openness;
428  m_vegage = a_LE->m_vegage;
429  for (int i = 0; i < 366; i++)
430  {
431  m_gooseNos[i] = a_LE->m_gooseNos[i];
432  m_gooseNosTimed[i] = a_LE->m_gooseNosTimed[i];
433  for (int l = 0; l < gs_foobar; l++)
434  {
435  m_gooseSpNos[i][l] = a_LE->m_gooseSpNos[i][l];
436  m_gooseSpNosTimed[i][l] = a_LE->m_gooseSpNosTimed[i][l];
437  }
438  }
439  for (int l = 0; l < gs_foobar; l++)
440  {
441  m_goosegrazingforage[l] = a_LE->m_goosegrazingforage[l];
442  }
443  for (int i = 0; i < 25; i++)
444  {
445  MDates[0][i] = a_LE->MDates[0][i];
446  MDates[1][i] = a_LE->MDates[1][i];
447  }
448  for (int i = 0; i<10; i++) SetMConstants(i, a_LE->MConsts[i]);
449 }

References m_almass_le_type, m_area, m_birdmaizeforage, m_birdseedforage, m_border, m_cattle_grazing, m_centroidx, m_centroidy, m_countrydesignation, m_days_since_insecticide_spray, m_ddegs, m_default_grazing_level, m_farmfunc_tried_to_do, m_goosegrazingforage, m_gooseNos, m_gooseNosTimed, m_gooseSpNos, m_gooseSpNosTimed, m_herbicidedelay, m_high, m_is_in_map, m_lastindex, m_lasttreat, m_management_loop_detect_count, m_management_loop_detect_date, m_map_index, m_maxx, m_maxy, m_minx, m_miny, m_mowndecay, m_olddays, m_openness, m_owner, m_owner_file, m_owner_index, m_PesticideGridCell, m_pig_grazing, m_poison, m_poly, m_repeat_start, m_rot_index, m_running, m_signal_mask, m_skylarkscrapes, m_soiltype, m_squares_in_map, m_subtype, m_tramlinesdecay, m_type, m_unsprayedmarginpolyref, m_valid_x, m_valid_y, m_vegage, m_vegddegs, m_vege_danger_store, m_yddegs, MConsts, and MDates.

Referenced by Landscape::Landscape(), and Landscape::RemoveSmallPolygons().

◆ DoDevelopment()

◆ ForceGrowthDevelopment()

virtual void LE::ForceGrowthDevelopment ( void  )
inlinevirtual

Reimplemented in VegElement.

173 {;}

◆ ForceGrowthInitialize()

virtual void LE::ForceGrowthInitialize ( void  )
inlinevirtual

Reimplemented in VegElement.

171 {;}

◆ ForceGrowthTest()

virtual void LE::ForceGrowthTest ( void  )
inlinevirtual

Reimplemented in VegElement.

172 {;}

◆ GetALMaSSEleType()

int LE::GetALMaSSEleType ( void  )
inline
111 { return m_almass_le_type; }

References m_almass_le_type.

◆ GetArea()

double LE::GetArea ( void  )
inline

◆ GetBirdMaize()

double LE::GetBirdMaize ( void  )
inline
204  {
205  return m_birdmaizeforage;
206  }

References m_birdmaizeforage.

◆ GetBirdSeed()

double LE::GetBirdSeed ( void  )
inline
198  {
199  return m_birdseedforage;
200  }

References m_birdseedforage.

◆ GetBorder()

LE* LE::GetBorder ( void  )
inline
317 { return m_border; }

References m_border.

Referenced by Landscape::BorderScan().

◆ GetCattleGrazing()

int LE::GetCattleGrazing ( void  )
inline
183 { return m_cattle_grazing; }

References m_cattle_grazing.

◆ GetCentroid()

APoint LE::GetCentroid ( )
virtual
535 {
536  APoint p;
537  p.m_x=m_centroidx;
538  p.m_y=m_centroidy;
539  return p;
540 }
A simple class defining an x,y coordinate set.
Definition: ALMaSS_Setup.h:53
int m_y
Definition: ALMaSS_Setup.h:56
int m_x
Definition: ALMaSS_Setup.h:55

References APoint::m_x, and APoint::m_y.

◆ GetCentroidX()

virtual int LE::GetCentroidX ( )
inlinevirtual
137 { return m_centroidx; }

References m_centroidx.

Referenced by Landscape::BeetleBankPossible(), and Landscape::BorderScan().

◆ GetCentroidY()

virtual int LE::GetCentroidY ( )
inlinevirtual
138 { return m_centroidy; }

References m_centroidy.

Referenced by Landscape::BeetleBankPossible(), and Landscape::BorderScan().

◆ GetCountryDesignation()

int LE::GetCountryDesignation ( void  )
inline
216 { return m_countrydesignation; }

References m_countrydesignation.

◆ GetDayDegrees()

virtual double LE::GetDayDegrees ( void  )
inlinevirtual
149 { return m_ddegs; }

References m_ddegs.

◆ GetDeadBiomass()

virtual double LE::GetDeadBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

153 { return 0.0; }

◆ GetDigestability()

virtual double LE::GetDigestability ( void  )
inlinevirtual

Reimplemented in VegElement.

140 { return 0.0; }

◆ GetElementType()

virtual TTypesOfLandscapeElement LE::GetElementType ( void  )
inlinevirtual
113 { return m_type; }

References m_type.

Referenced by Farm::AddField(), and Landscape::ReadPolys2().

◆ GetGooseGrazingForage()

double LE::GetGooseGrazingForage ( GooseSpecies  a_goose)
inline
197 { return m_goosegrazingforage[a_goose]; }

References m_goosegrazingforage.

◆ GetGooseNos()

int LE::GetGooseNos ( )

For goose model functionality, returns the number of geese yesterday.

This simply looks X days behind at the moment and sums the total number of geese seen.The length of the backward count can be altered by changing the config variable value cfg_goosecountperiod (default 1, only care about yesterday).

542  {
547  int geese = 0;
548  for (unsigned i = 1; i <= (unsigned)cfg_goosecountperiod.value( ); i++) {
549  unsigned ind = ((unsigned)g_date->DayInYear( ) - i) % 365;
550  geese += m_gooseNos[ ind ];
551  }
552  return geese;
553 }
class Calendar * g_date
Definition: calendar.cpp:38
int DayInYear(void)
Definition: calendar.h:58
int value(void)
Definition: configurator.h:98
CfgInt cfg_goosecountperiod("GOOSE_GOOSECOUNTPERIOD", CFG_CUSTOM, 1)
The number of days a goose count can be used.

References cfg_goosecountperiod, Calendar::DayInYear(), g_date, and CfgInt::value().

◆ GetGooseNosToday()

int LE::GetGooseNosToday ( )

For goose model functionality, returns the number of geese today.

This simply sums the total number of geese seen today.

569  {
573  int geese = 0;
574  for (unsigned i = 0; i < (unsigned)gs_foobar; i++) {
575  geese += m_gooseSpNos[g_date->DayInYear()][i];
576  }
577  return geese;
578 }

References Calendar::DayInYear(), and g_date.

◆ GetGooseNosTodayTimed()

int LE::GetGooseNosTodayTimed ( )

For goose model functionality, returns the number of geese today at a predefined time.

This simply sums the total number of geese seen today at our predefined timepoint.

580  {
584  int geese = 0;
585  for (unsigned i = 0; i < (unsigned)gs_foobar; i++) {
586  geese += m_gooseSpNosTimed[g_date->DayInYear()][i];
587  }
588  return geese;
589 }

References Calendar::DayInYear(), and g_date.

◆ GetGooseRoostDist()

int LE::GetGooseRoostDist ( GooseSpecies  a_goose)

For goose model functionality, returns the distance to closest roost.

Returns the distance to closest roost from the field.

601  {
602  return int(m_dist_to_closest_roost[a_goose]);
603 }
double m_dist_to_closest_roost[gs_foobar]
An array holding the distance to the nearest goose roost.
Definition: elements.h:511

◆ GetGooseSpNosToday()

int LE::GetGooseSpNosToday ( GooseSpecies  a_goose)

For goose model functionality, returns the number of geese per species yesterday.

Returns the number of geese of a specific species on a field today.

592  {
593  return m_gooseSpNos[g_date->DayInYear()][a_goose];
594 }

References Calendar::DayInYear(), and g_date.

◆ GetGooseSpNosTodayTimed()

int LE::GetGooseSpNosTodayTimed ( GooseSpecies  a_goose)

For goose model functionality, returns the number of geese per species yesterday at a predefined time.

Returns the number of geese of a specific species on a field today.

597  {
598  return m_gooseSpNosTimed[g_date->DayInYear()][a_goose];
599 }

References Calendar::DayInYear(), and g_date.

◆ GetGreenBiomass()

virtual double LE::GetGreenBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

152 { return 0.0; }

◆ GetHigh()

bool LE::GetHigh ( void  )
inline
182 { return m_high; }

References m_high.

◆ GetInsectPop()

virtual double LE::GetInsectPop ( void  )
inlinevirtual

Reimplemented in VegElement.

156 { return 0.0; }

Referenced by Farm::BulbHarvest(), Farm::Harvest(), OptimisingFarm::Harvest(), and Farm::HarvestLong().

◆ GetLAGreen()

virtual double LE::GetLAGreen ( void  )
inlinevirtual

Reimplemented in VegElement.

150 { return 0.0; }

◆ GetLastSownVeg()

TTypesOfVegetation LE::GetLastSownVeg ( )
inline

Returns the last vegetation type to be sown.

299  {
300  return m_lastsownvegtype;
301  }
TTypesOfVegetation m_lastsownvegtype
Records the last vegegetation type that was sown on the element.
Definition: elements.h:507

References m_lastsownvegtype.

◆ GetLastTreatment()

int LE::GetLastTreatment ( int *  a_index)
511  {
512  if ( * a_index == ( int )m_lastindex )
513  return sleep_all_day;
514  int i = ( * a_index ) ++;
515  int treat = m_lasttreat[ i ];
516  return treat;
517 }

References sleep_all_day.

◆ GetLATotal()

virtual double LE::GetLATotal ( void  )
inlinevirtual

Reimplemented in VegElement.

151 { return 0.0; }

◆ GetMapIndex()

int LE::GetMapIndex ( void  )
inline
190 { return m_map_index; }

References m_map_index.

Referenced by PesticideMap::Spray(), and Pesticide::TwinMapSpray().

◆ GetMapValid()

bool LE::GetMapValid ( void  )
inline
228 { return m_is_in_map; }

References m_is_in_map.

◆ GetMaxX()

int LE::GetMaxX ( void  )
inline
333 { return m_maxx; }

References m_maxx.

Referenced by PesticideMap::Spray().

◆ GetMaxY()

int LE::GetMaxY ( void  )
inline
334 { return m_maxy; }

References m_maxy.

Referenced by PesticideMap::Spray().

◆ GetMConstants()

int LE::GetMConstants ( int  a)
inline
343 {return MConsts[a];}
int MConsts[10]
Definition: elements.h:531

References MConsts.

◆ GetMDates()

int LE::GetMDates ( int  a,
int  b 
)
inline
341 {return MDates[a][b];}

References MDates.

◆ GetMgtLoopDetectCount()

long LE::GetMgtLoopDetectCount ( void  )
inline

◆ GetMgtLoopDetectDate()

long LE::GetMgtLoopDetectDate ( void  )
inline

◆ GetMinX()

int LE::GetMinX ( void  )
inline
335 { return m_minx; }

References m_minx.

Referenced by PesticideMap::Spray().

◆ GetMinY()

int LE::GetMinY ( void  )
inline
336 { return m_miny; }

References m_miny.

Referenced by PesticideMap::Spray().

◆ GetNectar()

virtual PollenNectarQuality LE::GetNectar ( )
inlinevirtual
431 { return m_nectarquality; }
PollenNectarQuality m_nectarquality
Definition: elements.h:540

References m_nectarquality.

◆ GetOldDays()

long LE::GetOldDays ( void  )
inline
218 { return m_olddays; }

References m_olddays.

◆ GetOpenness()

int LE::GetOpenness ( void  )
inline

For goose model functionality, openness score for the polygon.

350 { return m_openness; }

References m_openness.

◆ GetOsmiaNest()

bool LE::GetOsmiaNest ( )
inline

Test to see if a nest is found.

395  {
396  if ((m_currentOsmiaNests < m_maxOsmiaNests) && (g_rand_uni() < m_OsmiaNestProb)) return true;
397  return false;
398  }
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni

References g_rand_uni, m_currentOsmiaNests, m_maxOsmiaNests, and m_OsmiaNestProb.

◆ GetOwner()

Farm* LE::GetOwner ( void  )
inline
195 { return m_owner; }

References m_owner.

◆ GetOwnerFile()

int LE::GetOwnerFile ( void  )
inline
192 { return m_owner_file; }

References m_owner_file.

◆ GetOwnerIndex()

int LE::GetOwnerIndex ( void  )
inline
193 { return m_owner_index; }

References m_owner_index.

◆ GetPesticideCell()

int LE::GetPesticideCell ( )
inline
324 { return m_PesticideGridCell; }

References m_PesticideGridCell.

◆ GetPigGrazing()

bool LE::GetPigGrazing ( void  )
inline
184 { return m_pig_grazing; }

References m_pig_grazing.

◆ GetPoison()

bool LE::GetPoison ( void  )
inline
180 { return m_poison; }

References m_poison.

◆ GetPollen()

virtual PollenNectarQuality LE::GetPollen ( )
inlinevirtual
430 { return m_pollenquality; }
PollenNectarQuality m_pollenquality
Definition: elements.h:539

References m_pollenquality.

◆ GetPoly()

int LE::GetPoly ( void  )
inline

Returns the polyref number for this polygon.

189 { return m_poly; }

References m_poly.

Referenced by Landscape::BorderScan(), Landscape::FindFieldCenter(), Landscape::hb_StripingDist(), and Landscape::UnsprayedMarginScan().

◆ GetPreviousCrop()

virtual TTypesOfVegetation LE::GetPreviousCrop ( int  )
inlinevirtual

Reimplemented in Field.

179 { return tov_None; }
@ tov_None
Definition: tov_declaration.h:39

References tov_None.

◆ GetQuarryNos()

int LE::GetQuarryNos ( )

For goose model functionality, returns the number of geese yesterday which can be hunted as legal quarry.

This simply looks X days behind at the moment and sums the total number of legal quarry species seen.The length of the backward count can be altered by changing the config variable value cfg_goosecountperiod (default 1, only care about yesterday).

555  {
560  int geese = 0;
561  for (unsigned i = 1; i <= (unsigned)cfg_goosecountperiod.value(); i++) {
562  unsigned ind = ((unsigned)g_date->DayInYear() - i) % 365;
563  geese += m_gooseSpNos[ind][gs_Pinkfoot];
564  geese += m_gooseSpNos[ind][gs_Greylag];
565  }
566  return geese;
567 }

References cfg_goosecountperiod, Calendar::DayInYear(), g_date, and CfgInt::value().

◆ GetRotIndex()

int LE::GetRotIndex ( void  )
inline

◆ GetRunNum()

long LE::GetRunNum ( void  )
inline

◆ GetSignal()

◆ GetSkScrapes()

virtual bool LE::GetSkScrapes ( void  )
inlinevirtual

Reimplemented in VegElement.

142 { return false; }

◆ GetSoilType()

int LE::GetSoilType ( )
inline

/brief Gets the soil type ref number for the polygon

% Agricultural Usage AlmCode SoilType 0.99% None 0 Lake 4.45% None 1 Sand dunes 11.73% Poor 2 Lavbund 0.78% None 3 Marshland 6.28% Good 4 Clay / Sand 0.54% None 5 Sand dunes 4.57% Average 6 Moraine sand and gravel 38.11% Good 7 Moraine clay and silt( clay soil ) 19.31% Poor 8 Sandy 1.03% Good 9 Heavy Clay 9.91% Average 10 Sand / gravel - how is this different from moraine sand and gravel, smaller gravels maybe, no flints ? 1.79% Poor 11 Limestone ? 0.34% Poor 12 Chalk 0.15% None 13 Stoney

241  {
259  return m_soiltype;
260  }

References m_soiltype.

◆ GetSoilTypeR()

int LE::GetSoilTypeR ( )
inline

/brief Gets the soil type ref number for the polygon for rabbit warrens

The soil type follows the Danish Soil Classification and is denoted by a JB number see GetSoilType. Those types that are Sandy return 1, otherwise suitable for burrows 0, and 3 if unsuitable. If not soil types are specified then heavy soils suitable for long-term burrows are returned as default.

262  {
267  switch (m_soiltype)
268  {
269  case 0: return 3;
270  case 1: return 1;
271  case 2: return 3;
272  case 3: return 3;
273  case 4: return 0;
274  case 5: return 1;
275  case 6: return 0;
276  case 7: return 0;
277  case 8: return 1;
278  case 9: return 0;
279  case 10: return 0;
280  case 11: return 0;
281  case 12: return 0;
282  case 13: return 3;
283  default:
284  return 3;
285  }
286  }

References m_soiltype.

◆ GetSprayedToday()

bool LE::GetSprayedToday ( )
inline
304 { return m_sprayedtoday; }
bool m_sprayedtoday
flag to indicate an overspray situation
Definition: elements.h:475

References m_sprayedtoday.

◆ GetStubble()

bool LE::GetStubble ( )
inline

Return the in stubble flag.

392 { return m_instubble; }
bool m_instubble
A flag describing the state of the field from a visual perspective - will be in stubble following a c...
Definition: elements.h:499

References m_instubble.

◆ GetSubType()

int LE::GetSubType ( void  )
inline
109 { return m_subtype; }

References m_subtype.

◆ GetTotalNectar()

virtual double LE::GetTotalNectar ( )
inlinevirtual
433 { return m_totalNectar; }
double m_totalNectar
Definition: elements.h:542

References m_totalNectar.

◆ GetTotalPollen()

virtual double LE::GetTotalPollen ( )
inlinevirtual
432 { return m_totalPollen; }
double m_totalPollen
Definition: elements.h:541

References m_totalPollen.

◆ GetTrafficLoad()

virtual double LE::GetTrafficLoad ( void  )
inlinevirtual

Reimplemented in SmallRoad, and LargeRoad.

178 { return 0.0; }

◆ GetUnsprayedMarginPolyRef()

int LE::GetUnsprayedMarginPolyRef ( void  )
inline
319 { return m_unsprayedmarginpolyref; }

References m_unsprayedmarginpolyref.

Referenced by Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnRoll(), Farm::AutumnSow(), Farm::BedForming(), Farm::Biocide(), Farm::BulbHarvest(), Farm::BurnStrawStubble(), Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleOut(), Farm::CattleOutLowGrazing(), Farm::CutOrch(), Farm::CutToHay(), Farm::CutToSilage(), Farm::CutWeeds(), Farm::DeepPlough(), Field::DoDevelopment(), Farm::FA_AmmoniumSulphate(), Farm::FA_Calcium(), Farm::FA_GreenManure(), Farm::FA_ManganeseSulphate(), Farm::FA_Manure(), Farm::FA_NPK(), Farm::FA_NPKS(), Farm::FA_PK(), Farm::FA_RSM(), Farm::FA_Sludge(), Farm::FA_Slurry(), Farm::FlowerCutting(), Farm::FP_AmmoniumSulphate(), Farm::FP_Calcium(), Farm::FP_GreenManure(), Farm::FP_LiquidNH3(), Farm::FP_ManganeseSulphate(), Farm::FP_Manure(), Farm::FP_NPK(), Farm::FP_NPKS(), Farm::FP_PK(), Farm::FP_RSM(), Farm::FP_Sludge(), Farm::FP_Slurry(), Farm::Harvest(), OptimisingFarm::Harvest(), Farm::HarvestLong(), Farm::HayBailing(), Farm::HayTurning(), Farm::HeavyCultivatorAggregate(), Farm::HillingUp(), Farm::PigsAreOut(), Farm::PigsAreOutForced(), Farm::PigsOut(), Farm::PreseedingCultivator(), Farm::PreseedingCultivatorSow(), Farm::RowCultivation(), Farm::ShallowHarrow(), Farm::SleepAllDay(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringRoll(), Farm::SpringSow(), Farm::SpringSowWithFerti(), Farm::StrawChopping(), Farm::StrawCovering(), Farm::StrawRemoval(), Farm::Strigling(), Farm::StriglingHill(), Farm::StriglingSow(), Farm::StubbleCultivatorHeavy(), Farm::StubbleHarrowing(), Farm::StubblePlough(), Farm::Swathing(), Landscape::UnsprayedMarginScan(), Farm::Water(), and Farm::WinterPlough().

◆ GetValidX()

int LE::GetValidX ( void  )
inline

◆ GetValidY()

int LE::GetValidY ( void  )
inline

◆ GetVegAge()

int LE::GetVegAge ( )
inline
130 { return m_vegage; }

References m_vegage.

◆ GetVegBiomass()

virtual double LE::GetVegBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

154 { return 0.0; }

Referenced by Farm::CattleIsOut(), Farm::CattleIsOutLow(), and OptimisingFarm::Harvest().

◆ GetVegCover()

virtual double LE::GetVegCover ( void  )
inlinevirtual

Reimplemented in VegElement.

134 { return 0.0; }

◆ GetVegDDegs()

double LE::GetVegDDegs ( )
inline

Get the total of day degrees for the crop/veg on this element.

346  {
347  return m_vegddegs; //
348  }

References m_vegddegs.

◆ GetVegDensity()

virtual int LE::GetVegDensity ( void  )
inlinevirtual

Reimplemented in VegElement.

141 { return 0; }

◆ GetVegHeight()

virtual double LE::GetVegHeight ( void  )
inlinevirtual

Reimplemented in VegElement.

135 { return 0.0; }

◆ GetVegPatchy()

virtual bool LE::GetVegPatchy ( void  )
inlinevirtual

Reimplemented in VegElement.

146 { return false; }

◆ GetVegPhase()

virtual int LE::GetVegPhase ( void  )
inlinevirtual

Reimplemented in VegElement.

133 { return vegphase_foobar; }
@ vegphase_foobar
Definition: plants.h:57

References vegphase_foobar.

◆ GetVegStore()

int LE::GetVegStore ( void  )
inline
126 { return m_vege_danger_store; }

References m_vege_danger_store.

◆ GetVegType()

◆ GetWeedBiomass()

virtual double LE::GetWeedBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

155 { return 0.0; }

◆ GrazeVeg_Extended()

virtual void LE::GrazeVeg_Extended ( double  )
inlinevirtual
177 { ; }

◆ GrazeVegetation()

virtual void LE::GrazeVegetation ( double  ,
bool   
)
inlinevirtual

/brief Reduces the total vegetation biomass as a result of grazing in descendent classes, per m2 mass

Reimplemented in VegElement.

232  {
233  ;
234  }

Referenced by Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleOut(), and Farm::CattleOutLowGrazing().

◆ GrazeVegetationTotal()

virtual void LE::GrazeVegetationTotal ( double  )
inlinevirtual

/brief Reduces the total vegetation biomass as a result of grazing in descendent classes, total polygon mass

Reimplemented in VegElement.

237  {
238  ;
239  }

◆ HasTramlines()

bool LE::HasTramlines ( void  )
inline
185 { return ( m_tramlinesdecay>0 ); }

References m_tramlinesdecay.

◆ IncOsmiaNesting()

void LE::IncOsmiaNesting ( )
inline

Add an occupied nest.

416  {
418  }

References m_currentOsmiaNests.

◆ Insecticide()

virtual void LE::Insecticide ( double  )
inlinevirtual

◆ InsectMortality()

◆ IsCereal()

virtual bool LE::IsCereal ( void  )
inlinevirtual

Reimplemented in VegElement.

144 { return false; }

◆ IsGrass()

virtual bool LE::IsGrass ( )
inlinevirtual

Reimplemented in VegElement.

145 { return false; }

◆ IsMaleNewtPresent()

virtual bool LE::IsMaleNewtPresent ( )
inlinevirtual

Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic casts.

Reimplemented in Pond.

388 { return false; };

◆ IsMatureCereal()

virtual bool LE::IsMatureCereal ( void  )
inlinevirtual

Reimplemented in VegElement.

143 { return false; }

◆ IsRecentlyMown()

bool LE::IsRecentlyMown ( void  )
inline
186 { return ( m_mowndecay>0 ); }

References m_mowndecay.

◆ IsRecentlySprayed()

int LE::IsRecentlySprayed ( void  )
inline
187 { return ( m_herbicidedelay ); }

References m_herbicidedelay.

◆ RecalculateBugsNStuff()

virtual void LE::RecalculateBugsNStuff ( void  )
inlinevirtual

◆ ReduceVeg()

virtual void LE::ReduceVeg ( double  )
inlinevirtual

Reimplemented in VegElement.

175 {;}

Referenced by Farm::BurnStrawStubble(), Farm::CutWeeds(), and Farm::ShallowHarrow().

◆ ReduceVeg_Extended()

virtual void LE::ReduceVeg_Extended ( double  )
inlinevirtual

◆ ReduceWeedBiomass()

virtual void LE::ReduceWeedBiomass ( double  )
inlinevirtual

◆ ReleaseOsmiaNest()

void LE::ReleaseOsmiaNest ( )
inline

Test to see if a nest is found.

401  {
403  }

References m_currentOsmiaNests.

◆ ResetDigestability()

virtual void LE::ResetDigestability ( )
inlinevirtual

sets growth record to zero in descendent classes

Reimplemented in VegElement.

382 { ; }

Referenced by Farm::BulbHarvest(), Farm::CutToSilage(), Farm::Harvest(), OptimisingFarm::Harvest(), and Farm::HarvestLong().

◆ ResetTrace()

void LE::ResetTrace ( void  )
467  {
468  m_pindex = 0;
469  for ( int i = 0; i < 256; i++ ) {
470  m_pdates[ i ] = 0;
471  m_ptrace[ i ] = 0;
472  }
473 }

Referenced by Farm::HandleEvents(), and OptimisingFarm::HandleEvents().

◆ SetALMaSSEleType()

void LE::SetALMaSSEleType ( int  a_type)
inline

◆ SetArea()

void LE::SetArea ( double  a_area)
inline

◆ SetBirdMaize()

void LE::SetBirdMaize ( double  a_forage)
inline
213  {
214  m_birdmaizeforage = a_forage;
215  }

References m_birdmaizeforage.

Referenced by Farm::Harvest(), and Farm::HarvestLong().

◆ SetBirdSeed()

void LE::SetBirdSeed ( double  a_forage)
inline
201  {
202  m_birdseedforage = a_forage;
203  }

References m_birdseedforage.

Referenced by Farm::Harvest(), and Farm::HarvestLong().

◆ SetBorder()

void LE::SetBorder ( LE a_border)
inline
320 { m_border = a_border; }

References m_border.

Referenced by Landscape::BorderAdd(), and Landscape::ReadPolys2().

◆ SetCentroid()

virtual void LE::SetCentroid ( int  x,
int  y 
)
inlinevirtual

◆ SetCopyTreatment()

void LE::SetCopyTreatment ( int  a_treatment)
486  {
487  SetLastTreatment( a_treatment );
488 }
void SetLastTreatment(int a_treatment)
Definition: elements.cpp:490

◆ SetCountryDesignation()

void LE::SetCountryDesignation ( int  a_designation)
inline
217 { m_countrydesignation = a_designation; }

References m_countrydesignation.

◆ SetCropData()

virtual void LE::SetCropData ( double  ,
double  ,
double  ,
TTypesOfVegetation  ,
double  ,
int   
)
inlinevirtual

Reimplemented in VegElement.

167 { ; }

Referenced by Field::DoDevelopment().

◆ SetCropDataAll()

virtual void LE::SetCropDataAll ( double  ,
double  ,
double  ,
double  ,
TTypesOfVegetation  ,
double  ,
double  ,
int  ,
double  ,
bool  ,
double   
)
inlinevirtual

Reimplemented in VegElement.

168 {;}

Referenced by Field::DoDevelopment().

◆ SetElementType()

void LE::SetElementType ( int  a_type)
inline
114 { m_type = (TTypesOfLandscapeElement) a_type; }
TTypesOfLandscapeElement
Definition: tole_declaration.h:36

References m_type.

Referenced by Landscape::Landscape(), Landscape::NewElement(), and Landscape::RemoveSmallPolygons().

◆ SetGooseNos()

void LE::SetGooseNos ( int  a_number,
int  a_day 
)
inline

For goose model functionality, records the number of geese on a_day day

352 { m_gooseNos[a_day] = a_number; }

References m_gooseNos.

◆ SetGooseNosTimed()

void LE::SetGooseNosTimed ( int  a_number,
int  a_day 
)
inline

For goose model functionality, records the number of geese on a_day day

358 { m_gooseNosTimed[a_day] = a_number; }

References m_gooseNosTimed.

◆ SetGooseRoostDist()

void LE::SetGooseRoostDist ( int  a_dist,
GooseSpecies  a_goose 
)
inline

For goose model functionality, records the distance to the closest roost.

364 { m_dist_to_closest_roost[a_goose] = a_dist; }

References m_dist_to_closest_roost.

◆ SetGooseSpNos()

void LE::SetGooseSpNos ( int  a_number,
int  a_day,
GooseSpecies  a_goose 
)
inline

For goose model functionality, records the number of geese on a_day day

354  {
355  m_gooseSpNos[a_day][a_goose] = a_number;
356  }

References m_gooseSpNos.

◆ SetGooseSpNosTimed()

void LE::SetGooseSpNosTimed ( int  a_number,
int  a_day,
GooseSpecies  a_goose 
)
inline

For goose model functionality, records the number of geese on a_day day

360  {
361  m_gooseSpNosTimed[a_day][a_goose] = a_number;
362  }

References m_gooseSpNosTimed.

◆ SetGrowthPhase()

◆ SetHerbicideDelay()

void LE::SetHerbicideDelay ( int  a_decaytime_days)
inline

◆ SetHigh()

◆ SetInsectPop()

virtual void LE::SetInsectPop ( double  )
inlinevirtual

◆ SetLastSownVeg()

void LE::SetLastSownVeg ( TTypesOfVegetation  a_tov)
inline

Records the last vegetation type to be sown.

293  {
294  m_lastsownvegtype = a_tov;
295  }

References m_lastsownvegtype.

Referenced by Farm::AutumnSow(), Farm::PreseedingCultivatorSow(), Farm::SpringSow(), and Farm::SpringSowWithFerti().

◆ SetLastTreatment()

void LE::SetLastTreatment ( int  a_treatment)
490  {
491  unsigned sz = (int) m_lasttreat.size();
492  if ( m_lastindex == sz )
493  m_lasttreat.resize( m_lastindex + 1 );
494 
495  m_lasttreat[ m_lastindex++ ] = a_treatment;
496 
497  // Count this treatment in the grand scope of things.
498  g_landscape_p->IncTreatCounter( a_treatment );
499  // If we have a field margin then we need to tell it about this
500  // but not if it is an insecticide spray etc..
501  /* if (m_unsprayedmarginpolyref!=-1) { switch (a_treatment) { case herbicide_treat: case growth_regulator:
502  case fungicide_treat: case insecticide_treat: case trial_insecticidetreat: case syninsecticide_treat: case molluscicide:
503  break; // Do not add sprayings default: LE* le=g_landscape_p->SupplyLEPointer(m_unsprayedmarginpolyref);
504  le->SetCopyTreatment(a_treatment); // Now we also need to do something with the treatment
505 
506  break; }
507 
508  } */
509 }
void IncTreatCounter(int a_treat)
Definition: Landscape.cpp:3575
class Landscape * g_landscape_p
Definition: Landscape.cpp:258

References g_landscape_p, and Landscape::IncTreatCounter().

Referenced by Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnRoll(), Farm::AutumnSow(), Farm::BedForming(), Farm::Biocide(), Farm::BulbHarvest(), Farm::BurnStrawStubble(), Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleOut(), Farm::CattleOutLowGrazing(), Farm::CutOrch(), RoadsideVerge::Cutting(), Orchard::Cutting(), MownGrass::Cutting(), Farm::CutToHay(), Farm::CutToSilage(), Farm::CutWeeds(), Farm::DeepPlough(), Farm::FA_AmmoniumSulphate(), Farm::FA_Calcium(), Farm::FA_GreenManure(), Farm::FA_ManganeseSulphate(), Farm::FA_Manure(), Farm::FA_NPK(), Farm::FA_NPKS(), Farm::FA_PK(), Farm::FA_RSM(), Farm::FA_Sludge(), Farm::FA_Slurry(), Farm::FlowerCutting(), Farm::FP_AmmoniumSulphate(), Farm::FP_Calcium(), Farm::FP_GreenManure(), Farm::FP_LiquidNH3(), Farm::FP_ManganeseSulphate(), Farm::FP_Manure(), Farm::FP_NPK(), Farm::FP_NPKS(), Farm::FP_PK(), Farm::FP_RSM(), Farm::FP_Sludge(), Farm::FP_Slurry(), Farm::FungicideTreat(), OptimisingFarm::FungicideTreat(), Farm::GrowthRegulator(), Farm::Harvest(), OptimisingFarm::Harvest(), Farm::HarvestLong(), Farm::HayBailing(), Farm::HayTurning(), Farm::HeavyCultivatorAggregate(), Farm::HerbicideTreat(), OptimisingFarm::HerbicideTreat(), Farm::HillingUp(), Farm::InsecticideTreat(), OptimisingFarm::InsecticideTreat(), Farm::Molluscicide(), Farm::PigsAreOutForced(), Farm::PigsOut(), Farm::PreseedingCultivator(), Farm::PreseedingCultivatorSow(), Farm::ProductApplication(), Farm::ProductApplication_DateLimited(), Farm::RowCultivation(), Farm::ShallowHarrow(), Farm::SleepAllDay(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringRoll(), Farm::SpringSow(), Farm::SpringSowWithFerti(), Farm::StrawChopping(), Farm::StrawCovering(), Farm::StrawRemoval(), Farm::Strigling(), Farm::StriglingHill(), Farm::StriglingSow(), Farm::StubbleCultivatorHeavy(), Farm::StubbleHarrowing(), Farm::StubblePlough(), Farm::Swathing(), Farm::Water(), and Farm::WinterPlough().

◆ SetMaleNewtPresent()

virtual void LE::SetMaleNewtPresent ( bool  )
inlinevirtual

Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic casts.

Reimplemented in Pond.

386 { ; };

◆ SetMapIndex()

void LE::SetMapIndex ( int  a_map_index)
inline
191 { m_map_index = a_map_index; }

References m_map_index.

Referenced by Landscape::ReadPolys2().

◆ SetMapValid()

void LE::SetMapValid ( bool  a_valid)
inline
227 { m_is_in_map = a_valid; }

References m_is_in_map.

Referenced by Landscape::BeetleBankAdd(), and Landscape::BorderScan().

◆ SetMaxOsmiaNests()

void LE::SetMaxOsmiaNests ( double  a_noNests)
inline

Add an occupied nest.

422  {
423  m_maxOsmiaNests = int(a_noNests * m_area);
424  if (m_maxOsmiaNests < 1) m_maxOsmiaNests = 0;
425  }

References m_area, and m_maxOsmiaNests.

◆ SetMaxX()

void LE::SetMaxX ( int  x)
inline
337 { m_maxx=x; }

References m_maxx.

◆ SetMaxY()

void LE::SetMaxY ( int  y)
inline
338 { m_maxy=y; }

References m_maxy.

◆ SetMConstants()

void LE::SetMConstants ( int  a,
int  c 
)
inline
344 {MConsts[a]=c;}

References MConsts.

◆ SetMDates()

void LE::SetMDates ( int  a,
int  b,
int  c 
)
inline
342 {MDates[a][b]=c;}

References MDates.

◆ SetMgtLoopDetectCount()

void LE::SetMgtLoopDetectCount ( long  a_num)
inline

◆ SetMgtLoopDetectDate()

void LE::SetMgtLoopDetectDate ( long  a_num)
inline

◆ SetMinX()

void LE::SetMinX ( int  x)
inline
339 { m_minx=x; }

References m_minx.

◆ SetMinY()

void LE::SetMinY ( int  y)
inline
340 { m_miny=y; }

References m_miny.

◆ SetMownDecay()

void LE::SetMownDecay ( int  a_decaytime_days)
inline
315  { m_mowndecay = a_decaytime_days; }

References m_mowndecay.

Referenced by Farm::CutOrch(), Orchard::Cutting(), and MownGrass::Cutting().

◆ SetOldDays()

void LE::SetOldDays ( long  a_days)
inline
306 { m_olddays = a_days; }

References m_olddays.

◆ SetOpenness()

void LE::SetOpenness ( int  a_openness)
inline

Records the openness statistic for this polygon.

380 { m_openness=a_openness; }

References m_openness.

Referenced by Landscape::Landscape(), and Landscape::ReadPolys2().

◆ SetOwner()

void LE::SetOwner ( Farm a_owner,
int  a_owner_num,
int  a_owner_index 
)
inline
220  {
221  m_owner = a_owner;
222  m_owner_file = a_owner_num;
223  m_owner_index = a_owner_index;
224  }

References m_owner, m_owner_file, and m_owner_index.

Referenced by FarmManager::AddField(), and Landscape::RemoveSmallPolygons().

◆ SetPesticideCell()

void LE::SetPesticideCell ( int  a_cell)
inline
323 { m_PesticideGridCell = a_cell; }

References m_PesticideGridCell.

◆ SetPoison()

void LE::SetPoison ( bool  a_poison)
inline
181 { m_poison = a_poison; }

References m_poison.

◆ SetPollenNectarCurves()

void LE::SetPollenNectarCurves ( PollenNectarDevelopmentCurve a_pollencurnve,
PollenNectarDevelopmentCurve a_nectarcurve 
)
inline

Set method for pollen and nectar curves.

435  {
436  m_pollencurve = a_pollencurnve;
437  m_nectarcurve = a_nectarcurve;
438  }
PollenNectarDevelopmentCurve * m_pollencurve
pointer to the correct pollen curve set
Definition: elements.h:546
PollenNectarDevelopmentCurve * m_nectarcurve
pointer to the correct nectar curve set
Definition: elements.h:548

References m_nectarcurve, and m_pollencurve.

Referenced by VegElement::SetVegType().

◆ SetPollenNectarData()

void LE::SetPollenNectarData ( int  a_almasstype)

sets the pollen and nectar information

605  {
609  m_totalPollen = 0.0;
610  m_totalNectar = 0.0;
611 }
void SetPollenNectarCurves(PollenNectarDevelopmentCurve *a_pollencurnve, PollenNectarDevelopmentCurve *a_nectarcurve)
Set method for pollen and nectar curves.
Definition: elements.h:435
double GetData(int a_index)
The basic return function for the curve - day indexed.
Definition: plants.h:193
PollenNectarDevelopmentCurve * m_nectarcurveptr
Definition: plants.h:212
PollenNectarDevelopmentCurve * m_pollencurveptr
Definition: plants.h:211
PollenNectarDevelopmentCurveSet GetPollenNectarCurvePtr(int a_almassLEref)
Definition: plants.cpp:566
double m_quality
Definition: plants.h:220
class PollenNectarDevelopmentData * g_nectarpollen
Definition: Landscape.cpp:241

References g_nectarpollen, PollenNectarDevelopmentData::GetPollenNectarCurvePtr(), PollenNectarDevelopmentCurveSet::m_nectarcurveptr, and PollenNectarDevelopmentCurveSet::m_pollencurveptr.

Referenced by Landscape::NewElement().

◆ SetPoly()

void LE::SetPoly ( int  a_poly)
inline

◆ SetRotIndex()

void LE::SetRotIndex ( int  a_index)
inline

◆ SetSignal()

void LE::SetSignal ( LE_Signal  a_signal)
inline
108 { m_signal_mask = a_signal; }

References m_signal_mask.

◆ SetSoilType()

void LE::SetSoilType ( int  a_st)
inline
287  {
288  m_soiltype = a_st;
289  }

References m_soiltype.

Referenced by Landscape::Landscape(), and Landscape::ReadPolys2().

◆ SetSprayedToday()

void LE::SetSprayedToday ( bool  a_didit)
inline

◆ SetStubble()

void LE::SetStubble ( bool  a_flag)
inline

Sets the in stubble flag.

390 { m_instubble = a_flag; }

References m_instubble.

Referenced by Farm::Harvest(), and VegElement::ZeroVeg().

◆ SetSubType()

void LE::SetSubType ( int  a_subtype)
inline
110 { m_subtype = a_subtype; }

References m_subtype.

Referenced by HedgeBank::HedgeBank(), and Hedges::Hedges().

◆ SetTramlinesDecay()

◆ SetUnsprayedMarginPolyRef()

void LE::SetUnsprayedMarginPolyRef ( int  a_unsprayedmargin)
inline

◆ SetValidXY()

void LE::SetValidXY ( int  a_valid_x,
int  a_valid_y 
)
inline
326  {
327  m_valid_x = a_valid_x;
328  m_valid_y = a_valid_y;
329  }

References m_valid_x, and m_valid_y.

Referenced by Landscape::BeetleBankAdd().

◆ SetVegBiomass()

virtual void LE::SetVegBiomass ( int  )
inlinevirtual
163 {;}

◆ SetVegHeight()

virtual void LE::SetVegHeight ( double  )
inlinevirtual

Reimplemented in VegElement.

165 { ; }

Referenced by Farm::CutToHay(), Farm::CutToSilage(), and Farm::FlowerCutting().

◆ SetVegParameters()

virtual void LE::SetVegParameters ( double  ,
double  ,
double  ,
double   
)
inlinevirtual

Reimplemented in VegElement.

166 { ; }

Referenced by Farm::CutOrch().

◆ SetVegPatchy()

virtual void LE::SetVegPatchy ( bool  )
inlinevirtual

Reimplemented in VegElement.

148 { ;}

◆ SetVegStore()

void LE::SetVegStore ( int  a_veg)
inline

◆ SetVegType()

virtual void LE::SetVegType ( TTypesOfVegetation  ,
TTypesOfVegetation   
)
inlinevirtual

Reimplemented in VegElement.

164 {;}

Referenced by Farm::HandleEvents(), and OptimisingFarm::HandleEvents().

◆ StoreLAItotal()

virtual void LE::StoreLAItotal ( )
inlinevirtual

Reimplemented in VegElement.

169 {;}

◆ Tick()

void LE::Tick ( void  )
519  {
520  m_lastindex = 0;
521  m_lasttreat[ 0 ] = sleep_all_day;
522  if ( m_tramlinesdecay > 0 )
524  if ( m_mowndecay > 0 )
525  m_mowndecay--;
526  if ( m_herbicidedelay > 0 ) m_herbicidedelay--;
527 }

References sleep_all_day.

◆ ToggleCattleGrazing()

virtual void LE::ToggleCattleGrazing ( void  )
inlinevirtual

◆ TogglePigGrazing()

virtual void LE::TogglePigGrazing ( void  )
inlinevirtual

Reimplemented in VegElement.

162 {;}

Referenced by Farm::PigsAreOut(), and Farm::PigsOut().

◆ Trace()

void LE::Trace ( int  a_value)
457  {
458  m_farmfunc_tried_to_do = a_value;
459 #ifdef __RECORDFARMEVENTS
460  g_landscape_p->RecordEvent(a_value, g_date->DayInYear(), g_date->GetYearNumber());
461 #endif
463  m_ptrace[ m_pindex++ ] = a_value;
464  m_pindex &= 0xff; // Circular buffer if need be.
465 }
int GetYearNumber(void)
Definition: calendar.h:68

References Calendar::DayInYear(), g_date, g_landscape_p, and Calendar::GetYearNumber().

Referenced by Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnRoll(), Farm::AutumnSow(), Farm::BedForming(), Farm::Biocide(), Farm::BulbHarvest(), Farm::BurnStrawStubble(), Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleOut(), Farm::CattleOutLowGrazing(), Farm::CutOrch(), Farm::CutToHay(), Farm::CutToSilage(), Farm::CutWeeds(), Farm::DeepPlough(), Farm::FA_AmmoniumSulphate(), Farm::FA_Calcium(), Farm::FA_GreenManure(), Farm::FA_ManganeseSulphate(), Farm::FA_Manure(), Farm::FA_NPK(), Farm::FA_NPKS(), Farm::FA_PK(), Farm::FA_RSM(), Farm::FA_Sludge(), Farm::FA_Slurry(), Farm::FlowerCutting(), Farm::FP_AmmoniumSulphate(), Farm::FP_Calcium(), Farm::FP_GreenManure(), Farm::FP_LiquidNH3(), Farm::FP_ManganeseSulphate(), Farm::FP_Manure(), Farm::FP_NPK(), Farm::FP_NPKS(), Farm::FP_PK(), Farm::FP_RSM(), Farm::FP_Sludge(), Farm::FP_Slurry(), Farm::FungicideTreat(), OptimisingFarm::FungicideTreat(), Farm::GrowthRegulator(), Farm::Harvest(), OptimisingFarm::Harvest(), Farm::HarvestLong(), Farm::HayBailing(), Farm::HayTurning(), Farm::HeavyCultivatorAggregate(), Farm::HerbicideTreat(), OptimisingFarm::HerbicideTreat(), Farm::HillingUp(), Farm::InsecticideTreat(), OptimisingFarm::InsecticideTreat(), Farm::Molluscicide(), Farm::PigsAreOutForced(), Farm::PigsOut(), Farm::PreseedingCultivator(), Farm::PreseedingCultivatorSow(), Farm::ProductApplication(), Farm::ProductApplication_DateLimited(), Farm::RowCultivation(), Farm::ShallowHarrow(), Farm::SleepAllDay(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringRoll(), Farm::SpringSow(), Farm::SpringSowWithFerti(), Farm::StrawChopping(), Farm::StrawCovering(), Farm::StrawRemoval(), Farm::Strigling(), Farm::StriglingHill(), Farm::StriglingSow(), Farm::StubbleCultivatorHeavy(), Farm::StubbleHarrowing(), Farm::StubblePlough(), Farm::Swathing(), Farm::Water(), and Farm::WinterPlough().

◆ UpdateOsmiaNesting()

void LE::UpdateOsmiaNesting ( )
inline

Recalculate the nest finding probability.

407  {
408  if (m_maxOsmiaNests <= 0) m_OsmiaNestProb = 0.0;
409  else {
411  }
412  }

References m_currentOsmiaNests, m_maxOsmiaNests, and m_OsmiaNestProb.

◆ ZeroVeg()

◆ ZeroVegAge()

void LE::ZeroVegAge ( )
inline
129 { m_vegage=0; }

References m_vegage.

Member Data Documentation

◆ m_almass_le_type

int LE::m_almass_le_type
protected

This holds the ALMaSS element type reference number.

Referenced by DoCopy(), GetALMaSSEleType(), and SetALMaSSEleType().

◆ m_area

◆ m_birdmaizeforage

double LE::m_birdmaizeforage
protected

The maize forage present in KJ/m2.

Referenced by VegElement::CalcGooseForageResources(), DoCopy(), GetBirdMaize(), SetBirdMaize(), and VegElement::ZeroVeg().

◆ m_birdseedforage

double LE::m_birdseedforage
protected

The grain forage present in KJ/m2.

Referenced by VegElement::CalcGooseForageResources(), DoCopy(), GetBirdSeed(), SetBirdSeed(), and VegElement::ZeroVeg().

◆ m_border

LE* LE::m_border
protected

Referenced by DoCopy(), GetBorder(), and SetBorder().

◆ m_cattle_grazing

◆ m_centroidx

int LE::m_centroidx
protected

Referenced by DoCopy(), GetCentroidX(), and SetCentroid().

◆ m_centroidy

int LE::m_centroidy
protected

Referenced by DoCopy(), GetCentroidY(), and SetCentroid().

◆ m_countrydesignation

int LE::m_countrydesignation
protected

◆ m_currentOsmiaNests

int LE::m_currentOsmiaNests
protected

to record the number of actual osmia nests

Referenced by GetOsmiaNest(), IncOsmiaNesting(), ReleaseOsmiaNest(), and UpdateOsmiaNesting().

◆ m_days_since_insecticide_spray

int LE::m_days_since_insecticide_spray
protected

◆ m_ddegs

◆ m_default_grazing_level

◆ m_dist_to_closest_roost

double LE::m_dist_to_closest_roost[gs_foobar]
protected

An array holding the distance to the nearest goose roost.

Referenced by SetGooseRoostDist().

◆ m_farmfunc_tried_to_do

int LE::m_farmfunc_tried_to_do
protected

Referenced by DoCopy().

◆ m_goosegrazingforage

double LE::m_goosegrazingforage[gs_foobar]
protected

The grazing forage present in KJ/min. The last value indicates cereal 1 or not -1.

Referenced by VegElement::CalcGooseForageResources(), DoCopy(), and GetGooseGrazingForage().

◆ m_gooseNos

int LE::m_gooseNos[366]
protected

The number of geese each day.

Referenced by DoCopy(), VegElement::ResetGeese(), and SetGooseNos().

◆ m_gooseNosTimed

int LE::m_gooseNosTimed[366]
protected

The number of geese at a predefined time per day.

Referenced by DoCopy(), and SetGooseNosTimed().

◆ m_gooseSpNos

int LE::m_gooseSpNos[366][gs_foobar]
protected

The number of geese of each species each day.

Referenced by DoCopy(), VegElement::ResetGeese(), and SetGooseSpNos().

◆ m_gooseSpNosTimed

int LE::m_gooseSpNosTimed[366][gs_foobar]
protected

The number of geese of each species at a predefined time per day.

Referenced by DoCopy(), VegElement::ResetGeese(), and SetGooseSpNosTimed().

◆ m_herbicidedelay

◆ m_high

bool LE::m_high
protected

Referenced by DoCopy(), GetHigh(), and SetHigh().

◆ m_instubble

bool LE::m_instubble
protected

A flag describing the state of the field from a visual perspective - will be in stubble following a cereal crop until either soil cultivation or March 1st.

Referenced by GetStubble(), and SetStubble().

◆ m_is_in_map

bool LE::m_is_in_map
protected

Referenced by DoCopy(), GetMapValid(), and SetMapValid().

◆ m_largeroad_load

double LE::m_largeroad_load
staticprotected
Initial value:
=
{15,9,4,5,14,54,332,381,252,206,204,215,
231,256,335,470,384,270,191,130,91,100,99,60}

Referenced by LargeRoad::GetTrafficLoad().

◆ m_lastindex

unsigned int LE::m_lastindex
protected

Referenced by DoCopy().

◆ m_lastsownvegtype

TTypesOfVegetation LE::m_lastsownvegtype
protected

Records the last vegegetation type that was sown on the element.

Referenced by GetLastSownVeg(), VegElement::IsCereal(), VegElement::IsGooseGrass(), and SetLastSownVeg().

◆ m_lasttreat

vector<int> LE::m_lasttreat
protected

Referenced by DoCopy().

◆ m_management_loop_detect_count

long LE::m_management_loop_detect_count
protected

◆ m_management_loop_detect_date

long LE::m_management_loop_detect_date
protected

◆ m_map_index

int LE::m_map_index
protected

Referenced by DoCopy(), GetMapIndex(), and SetMapIndex().

◆ m_maxOsmiaNests

int LE::m_maxOsmiaNests
protected

to record the number of possible osmia nests

Referenced by GetOsmiaNest(), SetMaxOsmiaNests(), and UpdateOsmiaNesting().

◆ m_maxx

int LE::m_maxx
protected

◆ m_maxy

int LE::m_maxy
protected

◆ m_minx

int LE::m_minx
protected

◆ m_miny

int LE::m_miny
protected

◆ m_monthly_traffic

double LE::m_monthly_traffic
staticprotected
Initial value:
=
{0.9009, 0.9434, 0.9901, 1.0101, 1.0417, 1.0870,
1.0870, 1.0753, 1.0753, 1.0101, 0.9804, 0.9434}

Used for birds that feed on grain on cereal fields 3% spill is expected.

Yield % kg/Ha spill kJ/kg kj/m 0.85 0.01 8.5 13680 11.628 0.85 0.02 17 13680 23.256 0.85 0.03 25.5 13680 34.884 0.85 0.04 34 13680 46.512 0.85 0.05 42.5 13680 58.14 0.85 0.06 51 13680 69.768

Referenced by LargeRoad::GetTrafficLoad(), and SmallRoad::GetTrafficLoad().

◆ m_mowndecay

int LE::m_mowndecay
protected

◆ m_nectarcurve

PollenNectarDevelopmentCurve* LE::m_nectarcurve
protected

pointer to the correct nectar curve set

Referenced by SetPollenNectarCurves(), and VegElement::SetVegType().

◆ m_NectarM2

double LE::m_NectarM2
protected

◆ m_nectarquality

PollenNectarQuality LE::m_nectarquality
protected

Referenced by GetNectar().

◆ m_olddays

long LE::m_olddays
protected

Referenced by DoCopy(), GetOldDays(), and SetOldDays().

◆ m_openness

int LE::m_openness
protected

The openness metric for a field (if any)

Referenced by DoCopy(), GetOpenness(), and SetOpenness().

◆ m_OsmiaNestProb

double LE::m_OsmiaNestProb
protected

to record the chance of osmia nesting

Referenced by GetOsmiaNest(), and UpdateOsmiaNesting().

◆ m_owner

Farm* LE::m_owner
protected

◆ m_owner_file

int LE::m_owner_file
protected

Referenced by DoCopy(), GetOwnerFile(), and SetOwner().

◆ m_owner_index

◆ m_pdates

int LE::m_pdates[256]
protected

◆ m_PesticideGridCell

int LE::m_PesticideGridCell
protected

◆ m_pig_grazing

bool LE::m_pig_grazing
protected

◆ m_pindex

int LE::m_pindex
protected

◆ m_poison

bool LE::m_poison
protected

Referenced by DoCopy(), GetPoison(), and SetPoison().

◆ m_pollencurve

PollenNectarDevelopmentCurve* LE::m_pollencurve
protected

pointer to the correct pollen curve set

Referenced by VegElement::PollenNectarPhenologyCalculation(), SetPollenNectarCurves(), and VegElement::SetVegType().

◆ m_PollenM2

double LE::m_PollenM2
protected

◆ m_pollenquality

PollenNectarQuality LE::m_pollenquality
protected

◆ m_poly

int LE::m_poly
protected

◆ m_ptrace

int LE::m_ptrace[256]
protected

◆ m_repeat_start

bool LE::m_repeat_start

Referenced by DoCopy().

◆ m_rot_index

int LE::m_rot_index
protected

Referenced by DoCopy(), GetRotIndex(), and SetRotIndex().

◆ m_running

long LE::m_running
protected

Referenced by BumpRunNum(), DoCopy(), and GetRunNum().

◆ m_signal_mask

LE_Signal LE::m_signal_mask
protected

Referenced by DoCopy(), GetSignal(), and SetSignal().

◆ m_skylarkscrapes

bool LE::m_skylarkscrapes

For management testing of skylark scrapes.

Referenced by DoCopy(), and VegElement::GetSkScrapes().

◆ m_smallroad_load

double LE::m_smallroad_load
staticprotected
Initial value:
=
{4,3,1,1,4,15,94,108,71,58,58,61,
65,73,95,133,109,76,54,37,26,28,28,17}

Referenced by SmallRoad::GetTrafficLoad().

◆ m_soiltype

int LE::m_soiltype
protected

◆ m_sprayedtoday

bool LE::m_sprayedtoday
protected

flag to indicate an overspray situation

Referenced by GetSprayedToday(), and SetSprayedToday().

◆ m_squares_in_map

int LE::m_squares_in_map

Referenced by DoCopy().

◆ m_subtype

int LE::m_subtype
protected

Referenced by DoCopy(), GetSubType(), and SetSubType().

◆ m_totalNectar

double LE::m_totalNectar
protected

◆ m_totalPollen

double LE::m_totalPollen
protected

◆ m_tramlinesdecay

int LE::m_tramlinesdecay
protected

◆ m_tried_to_do

int LE::m_tried_to_do

Referenced by Farm::LeSwitch().

◆ m_type

TTypesOfLandscapeElement LE::m_type
protected

Referenced by ActivePit::ActivePit(), AmenityGrass::AmenityGrass(), BareRock::BareRock(), BeetleBank::BeetleBank(), Building::Building(), BuiltUpWithParkland::BuiltUpWithParkland(), Canal::Canal(), Carpark::Carpark(), ChameleonLE::ChameleonLE(), Churchyard::Churchyard(), Coast::Coast(), ConiferousForest::ConiferousForest(), Copse::Copse(), DeciduousForest::DeciduousForest(), DoCopy(), Field::DoDevelopment(), DrainageDitch::DrainageDitch(), Fence::Fence(), Field::Field(), FieldBoundary::FieldBoundary(), FishFarm::FishFarm(), Freshwater::Freshwater(), Garden::Garden(), GetElementType(), Heath::Heath(), HedgeBank::HedgeBank(), Hedges::Hedges(), HeritageSite::HeritageSite(), IndividualTree::IndividualTree(), LargeRoad::LargeRoad(), Marsh::Marsh(), MetalledPath::MetalledPath(), MixedForest::MixedForest(), MownGrass::MownGrass(), NaturalGrassDry::NaturalGrassDry(), NaturalGrassWet::NaturalGrassWet(), Orchard::Orchard(), OrchardBand::OrchardBand(), Parkland::Parkland(), PermanentSetaside::PermanentSetaside(), PermPasture::PermPasture(), PermPastureLowYield::PermPastureLowYield(), PermPastureTussocky::PermPastureTussocky(), PitDisused::PitDisused(), PlantNursery::PlantNursery(), Pond::Pond(), Pylon::Pylon(), Railway::Railway(), RefuseSite::RefuseSite(), River::River(), RiverBed::RiverBed(), RiversidePlants::RiversidePlants(), RiversideTrees::RiversideTrees(), RoadsideSlope::RoadsideSlope(), RoadsideVerge::RoadsideVerge(), Saltmarsh::Saltmarsh(), Saltwater::Saltwater(), SandDune::SandDune(), Scrub::Scrub(), SetElementType(), SmallRoad::SmallRoad(), StoneWall::StoneWall(), Stream::Stream(), Track::Track(), UnsprayedFieldMargin::UnsprayedFieldMargin(), UrbanNoVeg::UrbanNoVeg(), UrbanPark::UrbanPark(), UrbanVeg::UrbanVeg(), Vildtager::Vildtager(), Wasteland::Wasteland(), WaterBufferZone::WaterBufferZone(), WindTurbine::WindTurbine(), WoodlandMargin::WoodlandMargin(), WoodyEnergyCrop::WoodyEnergyCrop(), and YoungForest::YoungForest().

◆ m_unsprayedmarginpolyref

int LE::m_unsprayedmarginpolyref
protected

◆ m_user

long LE::m_user[EL_MAX_USERSPACE]

‍**

Variable used to record the current grazing pressure by e.g. voles *‍/ ‍** Variable used to record the current grazing pressure by e.g. voles *‍/ ‍** Change the current grazing pressure by e.g. voles *‍/ ‍** Get the current total grazing pressure by e.g. voles *‍/ ‍** Calculate the current grazing pressure by e.g. voles *‍/ ‍** Get the current grazing pressure by e.g. voles *‍/ ‍** Reset the current grazing pressure by e.g. voles *‍/ /void ResetVoleGrazing( void ) { m_volegrazing = 0.0; }

◆ m_valid_x

int LE::m_valid_x
protected

Referenced by DoCopy(), GetValidX(), and SetValidXY().

◆ m_valid_y

int LE::m_valid_y
protected

Referenced by DoCopy(), GetValidY(), and SetValidXY().

◆ m_vegage

int LE::m_vegage
protected

Referenced by DoCopy(), GetVegAge(), and ZeroVegAge().

◆ m_vegddegs

◆ m_vege_danger_store

int LE::m_vege_danger_store
protected

Referenced by DoCopy(), GetVegStore(), and SetVegStore().

◆ m_yddegs

◆ MConsts

int LE::MConsts[10]
protected

◆ MDates

int LE::MDates[2][25]
protected

Referenced by DoCopy(), GetMDates(), and SetMDates().


The documentation for this class was generated from the following files: